﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateSlideShow.aspx.cs"
    Inherits="ShowroomMobile.UpdateSlideShow" Theme="tbmobile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="css/admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="scripts/jquery.js"></script>
    <title></title>
    <script>
        $(document).ready(function () {
            $('img')
	            .error(function () {
	                $(this).attr("src", "images/photo_not_available.jpg");
	            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <table cellpadding="5" cellspacing="0">
            <tr>
                <td>
                    Title
                    <label class='required'>
                        *</label>
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" class="admin_txt" ValidationGroup="Save"
                        Width="400px" />
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator3" runat="server"
                        class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Image
                    <label class='required'>
                        *</label>
                </td>
                <td>
                    <asp:FileUpload ID="fulImageFile" runat="server"  /><br />
                    <span>(Width: 1000px, Height: 364px)</span>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <div class="imgBorder">
                        <span></span>
                        <asp:Image runat="server" ID="imgFileName" CssClass="imgAdmin" /></div>
                </td>
            </tr>
            <tr>
                <td>
                    URL
                    <label class='required'>
                        *</label>
                </td>
                <td>
                    <asp:TextBox ID="txtURL" runat="server" class="admin_txt" ValidationGroup="Save"
                        Width="400px" />
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator1" runat="server"
                        class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtURL"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;">
                    Description
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine" Rows="7" Width="400px" />
                </td>
            </tr>
            <tr>
                <td>
                    
                </td>
                <td>
                    <asp:CheckBox runat="server" ID="ckbActive" Checked="true" Text="Active" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnSave" ValidationGroup="Save" OnClick="btnSave_OnClick"
                        Text="Save" />
                    <br />
                    <br />
                    <label class='required'>
                        *</label>
                    required
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
